package com.juzhi.dvrapp.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.NotNull;
import org.greenrobot.greendao.annotation.Unique;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by YangHu on 2017/9/8.
 */

@Entity
public class DeviceModel {
    @Id(autoincrement = true)
    public Long id;
    //设备名称
    @NotNull
    private String deviceName;
    //设备ID
    @Unique
    private String ssid;
    //设备账户
    @NotNull
    private String userName;
    //设备密码
    @NotNull
    private String password;
    //设备类型
    @NotNull
    private int deviceType; // 0本地设备   1远程设备
    @Generated(hash = 2039859937)
    public DeviceModel(Long id, @NotNull String deviceName, String ssid,
            @NotNull String userName, @NotNull String password, int deviceType) {
        this.id = id;
        this.deviceName = deviceName;
        this.ssid = ssid;
        this.userName = userName;
        this.password = password;
        this.deviceType = deviceType;
    }
    @Generated(hash = 210163102)
    public DeviceModel() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getDeviceName() {
        return this.deviceName;
    }
    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }
    public String getUserName() {
        return this.userName;
    }
    public void setUserName(String userName) {
        this.userName = userName;
    }
    public String getPassword() {
        return this.password;
    }
    public void setPassword(String password) {
        this.password = password;
    }
    public int getDeviceType() {
        return this.deviceType;
    }
    public void setDeviceType(int deviceType) {
        this.deviceType = deviceType;
    }
    public String getSsid() {
        return this.ssid;
    }
    public void setSsid(String ssid) {
        this.ssid = ssid;
    }
}
